import redis.asyncio as redis
import os

redis_pool = redis.ConnectionPool.from_url(
    os.getenv("REDIS_URL", "redis://localhost:6379"),
    max_connections=10,
    decode_responses=True,
)

redis_client = redis.Redis(connection_pool=redis_pool)